package cn.seventhquestion;

public class Test {
    public static void main(String[] args) {
        Vehicle vehicle = new Vehicle(4,10);
        String str=vehicle.show();
        System.out.println(str);

        Vehicle vehicle1 = new Car(6,15,6);
        String str1=vehicle1.show();
        System.out.println(str1);

        Car car = new Truck(4,6,4,1);
        String str2=car.show();
        System.out.println(str2);
    }
}
